//过滤器
export const normalDate = (value = '') => {
    return value.slice(0, value.indexOf('T')).split('-').join('/');
}

//处理三位数字加逗号
export const toThousands = (num) => {
    return (num || 0).toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,');
}